package com.example.springmvcdemo1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
/*    @RequestMapping("/index")
    public Object inde() {
        return "index.html";
    }*/
    @RequestMapping("/text")
    public Object test() {
        return "<h1>你好呀</h1>";
    }
}
